package com.sdy.resdir.biz.service;

import com.sdy.common.model.BizException;
import com.sdy.resdir.biz.model.RdSelfBuiltSystem;
import com.sdy.mvc.service.BaseService;

/**
 * <p>
 * 自建系统 服务类
 * </p>
 *
 * @author hyh
 * @since 2019-10-24
 */
public interface RdSelfBuiltSystemService extends BaseService<RdSelfBuiltSystem> {


    /**
     * 新增自建系统
     *
     * @param app
     * @param userId
     * @return
     * @throws BizException
     */
    int createApp(RdSelfBuiltSystem app, Integer userId) throws BizException;

    /**
     * 修改自建系统
     *
     * @param app
     * @param userId
     * @return
     * @throws BizException
     */
    void updateApp(RdSelfBuiltSystem app,Integer userId) throws BizException;

    /**
     * 获取自建系统信息
     *
     * @param id
     * @return
     */
    RdSelfBuiltSystem getAppInfo(Integer id) throws BizException;

}
